home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Mac Power 1997 December
/
MACPOWER-1997-12.ISO.7z
/
MACPOWER-1997-12.ISO
/
AMUG
/
PROGRAMMING
/
Raven 1.2 Examples.sit
/
Raven 1.2 Examples
/
Quill
/
Source
/
PaneListTool.cpp
< prev
next >
Wrap
Text File
|
1997-02-20
|
2KB
|
74 lines
/*
* File: PaneListTool.h
* Function: A tool window containing a list of all the Raven panes.
* Written by: Jesse Jones
*
* Copyright ゥ 1996 Jesse Jones.
* For conditions of distribution and use, see copyright notice in ZTypes.h
*
* Change History (most recent first):
*
* <-> 9/02/96 JDJ Created
*/
#include "PaneListTool.h"
#include "ViewContainer.h"
// ===================================================================================
// class CPaneListTool
// ===================================================================================
static TReanimatorRegister<CPaneListTool> sPaneListToolRegistrar;
//---------------------------------------------------------------
//
// CPaneListTool::~CPaneListTool
//
//---------------------------------------------------------------
CPaneListTool::~CPaneListTool()
{
}
//---------------------------------------------------------------
//
// CPaneListTool::CPaneListTool
//
//---------------------------------------------------------------
CPaneListTool::CPaneListTool()
{
}
//---------------------------------------------------------------
//
// CPaneListTool::Create (MReanimatable*) [static]
//
//---------------------------------------------------------------
MReanimatable* CPaneListTool::Create(MReanimatable*)
{
return new CPaneListTool;
}
//---------------------------------------------------------------
//
// CPaneListTool::OperatesOn
//
//---------------------------------------------------------------
bool CPaneListTool::OperatesOn(TWindow* wind) const
{
bool target = false;
if (dynamic_cast<CViewContainer*>(wind->FindSubPane("CViewContainer")) != nil)
if (wind->HasAttribute("Editing"))
if (wind->GetLayer() == kRegularLayer)
target = true;
return target;
}